<?php

namespace UF\AccountBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class GuestType extends AbstractType
{
	
	public $accountId;
	
    public function __construct($accountId)
    {
        $this->accountId = $accountId;
    }
	
    public function buildForm(FormBuilder $builder, array $options)
    {    
        $builder->add('firstname','text');
        $builder->add('lastname','text');
        $builder->add('email','email');
        $builder->add('nationality','entity',array(
        									'class' => 'UFAccountBundle:Nationality',
        									)
        			)
        ;
    }
    
    public function getName()
    {
        return 'guest';
    }
}